package com.app.acitivty;

import com.app.activity.R;
import com.app.components.TopMenu;
import com.app.utils.ActivityTools;

import android.app.Activity;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class InfoActivity extends Activity{
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.info);
		
		
		TopMenu topMenu=new TopMenu(this, "返回", new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				InfoActivity.this.finish();
//				ActivityTools.gotoActivity(InfoActivity.this, MainActivity.class);
				
			}
		}, R.drawable.top_button_unselect, R.drawable.top_button_selected, "个人信息");
		topMenu.onCreate();
		
		Resources res =getResources();
		Drawable drawable = res.getDrawable(R.drawable.white);
		this.getWindow().setBackgroundDrawable(drawable);
	}

}
